
//
//  NewPlanListTableViewCell.m
//  wangzhe
//
//  Created by 李 佳伟 on 2018/3/27.
//  Copyright © 2018年 李 佳伟. All rights reserved.
//

#import "NewPlanListTableViewCell.h"
#import "JTCSM.h"
static CGFloat space = 20;
CGFloat top = 15;
@interface NewPlanListTableViewCell ()

@property (nonatomic,strong ) UILabel *bankNameLabel;
@property (nonatomic,strong ) UILabel *fukuanLabel;
@property (nonatomic,strong ) UILabel *huankuanLabel;
@property (nonatomic,strong ) UILabel *shouxufeiLabel;
@property (nonatomic,strong ) UILabel *shijianLabel;
@end

@implementation NewPlanListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if ([super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        
        CGRect rect = [df labelHeightWithContent:@"测试数据" width:10000 font:15];
        CGRect rect1 = [df labelHeightWithContent:@"测试数据" width:10000 font:12];
        CGRect rect2 = [df labelHeightWithContent:@"测试数据" width:10000 font:9];
        CGRect rect3 = [df labelHeightWithContent:@"测试数据" width:10000 font:14];
        
        CGFloat cellheight = 75;
        self.bankNameLabel = [UILabel initWithFrame:CGRectMake(space, 20, KSCREENWidth/2-space, rect.size.height) text:@"民生银行" font:15 textAlignment:NSTextAlignmentLeft texcolor:[df colorWithHexString:@"333333" alpha:1] backgroundColor:nil];
        [self.contentView addSubview:self.bankNameLabel];
        
        self.fukuanLabel = [UILabel initWithFrame:CGRectMake(space, KVIEW_Y(self.bankNameLabel)+9, KSCREENWidth/2-space, rect1.size.height) text:@"付款金额：1000.00" font:12 textAlignment:NSTextAlignmentLeft texcolor:[df colorWithHexString:@"666666" alpha:1] backgroundColor:nil];
        [self.contentView addSubview:self.fukuanLabel];
        
        
        self.huankuanLabel = [UILabel initWithFrame:CGRectMake(KSCREENWidth/2, 12, KSCREENWidth/2-space, rect3.size.height) text:@"还款金额：998.8" font:14 textAlignment:NSTextAlignmentRight texcolor:[df colorWithHexString:@"333333" alpha:1] backgroundColor:nil];
        [self.contentView addSubview:self.huankuanLabel];
        
        self.shouxufeiLabel = [UILabel initWithFrame:CGRectMake(KSCREENWidth/2, KVIEW_Y(self.huankuanLabel)+8, KSCREENWidth/2-space, self.fukuanLabel.LC_height) text:@"手续费：23.00" font:12 textAlignment:NSTextAlignmentRight texcolor:[df colorWithHexString:@"666666" alpha:1] backgroundColor:nil];
        [self.contentView addSubview:self.shouxufeiLabel];
        
        self.shijianLabel = [UILabel initWithFrame:CGRectMake(KSCREENWidth/2, KVIEW_Y(self.shouxufeiLabel)+7, KSCREENWidth/2-space, rect2.size.height) text:@"2018-02-27" font:9 textAlignment:NSTextAlignmentRight texcolor:[df colorWithHexString:@"999999" alpha:1] backgroundColor:nil];
        [self.contentView addSubview:self.shijianLabel];
        
        [df lineViewWithHeightofTop:cellheight superView:self spacing:20 color:RGBACOLOR(241, 241, 241, 1) lineHeight:1];
        
        UIView *line = [[UIView alloc]initWithFrame:CGRectMake(20, cellheight-1, KSCREENWidth-2*20, 1)];
        line.backgroundColor = RGBACOLOR(241, 241, 241, 1);
        [self.contentView addSubview:line];
        
        
    }
    return self;
}
- (void)setValueWithModel:(id)model{
    
}
@end
